<template>
<div class="view-UserTest">
     <el-button @click='layout'>退出</el-button>
</div>
</template>

<script>
// @ is an alias to /src
import { post, get, request } from '@/common/service'

export default {
    name: 'UserTest',
    components: {
    },
    mounted () {
    },
    data () {
        return {
        }
    },
    methods: {
        layout () {
            get(this.Api('loginOut')).then((res) => {
                if(res.status == this.statusCode.successCode) {
                    console.log('登出成功');
                    this.$router.push("/javaviews/UserLogin")
                }
            });
        }
    }
}
</script>

<style scoped lang="scss">
</style>
